package com.base.cn.platform.os.controller.qa.record;

import com.base.cn.platform.os.common.controller.BaseController;
import com.base.cn.platform.os.entity.qa.record.QaBuyRecord;
import com.base.cn.platform.os.service.qa.record.QaBuyRecordBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 付费提问记录Controller
 * @author LIZHIPENG
 * @since 2018/5/2
 */
@RestController
@RequestMapping("/course")
public class QaBuyRecordController extends BaseController {

    @Autowired
    private QaBuyRecordBiz qaBuyRecordBiz;

    /**
     * 添加问答支付记录
     * @param qaBuyRecordList
     */
    @RequestMapping("/createBuyRecord")
    public void createBuyRecord(@RequestBody List<QaBuyRecord> qaBuyRecordList){
        qaBuyRecordBiz.createBuyRecord(qaBuyRecordList);
    }

}
